home *** CD-ROM | disk | FTP | other *** search
/ The Fatted Calf / The Fatted Calf.iso / Applications / Communication / Weather / Weather.app / Other.bundle / getMap < prev    next >
Text File  |  1993-11-14  |  500b  |  26 lines

  1. #! /bin/csh -f
  2. # fetch and open weather map file(s) from unidata.ucar.edu:images/...
  3.  
  4. set m = 128.117.140.3        # unidata.ucar.edu
  5. set p = images/current.color    # path to weather maps
  6. set t = /tmp/W_maps        # temporary place for files
  7. set o = /tmp/console.log    # output logfile
  8.  
  9. mkdirs $t
  10. cd $t
  11.  
  12. ftp -i -n $m <<eof
  13. user anonymous guest
  14. bin
  15. cd $p
  16. mget $*
  17. eof
  18. foreach i ($*)
  19.     test -s $i
  20.     if ($status) then
  21.             echo "Couldn't get weather map $i" | open
  22.     else
  23.             open $i
  24.     endif
  25. end
  26.